forked from TanmayPatil105/procfetch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
34 lines (28 loc) · 767 Bytes
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
PROJECT = procfetch
VERSION = @VERSION@
DIST_DIR = dist
GIF_DIR = images
TOPTARGETS := all run check gcov clean docs install uninstall dist gif
SUBDIRS := src ascii
.PHONY: $(TOPTARGETS) $(SUBDIRS)
$(TOPTARGETS): $(SUBDIRS)
$(SUBDIRS):
$(MAKE) -C $@ -j $(MAKECMDGOALS)
clean:
rm -rf docs $(DIST_DIR)
docs:
doxygen
cp -r images docs/html
dist:
@if [ ! -d $(DIST_DIR)/$(PROJECT)-$(VERSION) ]; then\
echo "mkdir -p $(DIST_DIR)/$(PROJECT)-$(VERSION)";\
mkdir -p $(DIST_DIR)/$(PROJECT)-$(VERSION);\
fi
git ls-files |\
grep -v -f .distignore |\
cpio -dp $(DIST_DIR)/$(PROJECT)-$(VERSION)
tar -C$(DIST_DIR) -cf- $(PROJECT)-$(VERSION) |\
bzip2 -cz > $(DIST_DIR)/$(PROJECT)-$(VERSION).tar.bz2
gif:
rm -f $(GIF_DIR)/procfetch.gif
vhs < procfetch.tape