-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
32 lines (26 loc) · 929 Bytes
/
Makefile
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
# Makefile for quIRC
VERSION := `git describe --tags`
include distMakefile
FORCE:
version.h: FORCE
./gitversion
dist: all doc
-mkdir quirc_$(VERSION)
for p in $$(ls); do cp $$p quirc_$(VERSION)/$$p; done;
cp -r dist quirc_$(VERSION)/dist
-rm quirc_$(VERSION)/*.tar.gz
mv quirc_$(VERSION)/distMakefile quirc_$(VERSION)/Makefile
tar -czf quirc_$(VERSION).tar.gz quirc_$(VERSION)/
rm -r quirc_$(VERSION)
dists: c_init.c config.c config.h version.h keymod.h keymap.c doc
-mkdir quirc_$(VERSION).src
for p in $$(ls); do cp $$p quirc_$(VERSION).src/$$p; done;
cp -r dist quirc_$(VERSION).src/dist
-rm quirc_$(VERSION).src/*.tar.gz
rm quirc_$(VERSION).src/*.o
rm quirc_$(VERSION).src/quirc
rm quirc_$(VERSION).src/genconfig
rm quirc_$(VERSION).src/genkeymap
mv quirc_$(VERSION).src/distMakefile quirc_$(VERSION).src/Makefile
tar -czf quirc_$(VERSION).src.tar.gz quirc_$(VERSION).src/
rm -r quirc_$(VERSION).src