summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNick White <hg@njw.me.uk>2011-08-01 18:33:40 +0100
committerNick White <hg@njw.me.uk>2011-08-01 18:33:40 +0100
commit99ad99f6c360451305796b895419382e76c93970 (patch)
tree7a3014b6cb2d0cfa8de777a9184db5611a798ed7 /Makefile
parent063a0de3c10d38741c939297bb19d8284757e00c (diff)
Add makepdf script
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index df6b1a4..395f927 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@ NAME = getxbook
SRC = getgbook.c
LIB = util.o
+SCRIPTS = getgmissing.sh makepdf.sh
BIN = $(SRC:.c=)
OBJ = $(SRC:.c=.o) $(LIB)
@@ -28,17 +29,17 @@ util.a: $(LIB)
@ranlib $@
install: all
- cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin
+ cp -f $(BIN) $(SCRIPTS) $(DESTDIR)$(PREFIX)/bin
uninstall:
- cd $(DESTDIR)$(PREFIX)/bin && rm -f $(BIN)
+ cd $(DESTDIR)$(PREFIX)/bin && rm -f $(BIN) $(SCRIPTS)
clean:
rm -f -- $(BIN) $(OBJ) util.a
dist:
@mkdir -p $(NAME)-$(VERSION)
- @cp $(SRC) util.h util.c Makefile config.mk COPYING $(NAME)-$(VERSION)
+ @cp $(SRC) $(SCRIPTS) util.h util.c Makefile config.mk COPYING $(NAME)-$(VERSION)
@tar c $(NAME)-$(VERSION) | gzip -c > $(NAME)-$(VERSION).tar.gz
@rm -rf $(NAME)-$(VERSION)
@echo $(NAME)-$(VERSION).tar.gz