Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 61 lines (44 sloc) 1.533 kB
cad4fa5 @falconindy make: Implement suckless style build system with config.mk
authored
1 # cower - a simple AUR downloader
1c500b9 @falconindy Initial commit
authored
2
cad4fa5 @falconindy make: Implement suckless style build system with config.mk
authored
3 include config.mk
4
eaa7995 @falconindy rewrite from scratch
authored
5 SRC = cower.c
cad4fa5 @falconindy make: Implement suckless style build system with config.mk
authored
6 OBJ = ${SRC:.c=.o}
7
00210f8 @falconindy create a DISTFILES var to track... distfiles
authored
8 DISTFILES = Makefile README.pod bash_completion config cower.c
9
a4c0320 @falconindy simplify config.mk and Makefile.
authored
10 all: cower doc
77f39b7 @falconindy Makefile: simplify SRC declaration. Separate build options from insta…
authored
11
a903eab @falconindy add '35' make target
authored
12 35:
8966086 @falconindy use new alpm_db_get_pkgcache_list if available
authored
13 ${MAKE} PMCHECK="-D_HAVE_ALPM_FIND_SATISFIER -D_HAVE_ALPM_DB_GET_PKGCACHE_LIST" all
a903eab @falconindy add '35' make target
authored
14
4defa95 @falconindy Makefile: rework main compile loop to objectify everything and then d…
authored
15 .c.o:
eaa7995 @falconindy rewrite from scratch
authored
16 ${CC} -c ${CFLAGS} $<
affa950 @falconindy Add install target
authored
17
cad4fa5 @falconindy make: Implement suckless style build system with config.mk
authored
18 ${OBJ}: config.mk
19 cower: ${OBJ}
eaa7995 @falconindy rewrite from scratch
authored
20 ${CC} -o $@ ${OBJ} ${LDFLAGS}
cad4fa5 @falconindy make: Implement suckless style build system with config.mk
authored
21
22 doc: cower.1
6935241 @falconindy Use POD file as README for GitHub as well as for manual page
authored
23 cower.1: README.pod
a4c0320 @falconindy simplify config.mk and Makefile.
authored
24 pod2man --section=1 --center="Cower Manual" --name="COWER" --release="cower ${VERSION}" $< > $@
cad4fa5 @falconindy make: Implement suckless style build system with config.mk
authored
25
a4c0320 @falconindy simplify config.mk and Makefile.
authored
26 install: cower cower.1
eaa7995 @falconindy rewrite from scratch
authored
27 install -D -m755 cower ${DESTDIR}${PREFIX}/bin/cower
28 install -D -m644 cower.1 ${DESTDIR}${MANPREFIX}/man1/cower.1
29 install -D -m644 bash_completion ${DESTDIR}/etc/bash_completion.d/cower
36a2bc3 @falconindy Makefile: install sample config
authored
30 install -D -m644 config ${DESTDIR}/usr/share/cower/config
4559ad7 @falconindy Add in alpm calls. We're leak free initializing, doing nothing, and r…
authored
31
a4c0320 @falconindy simplify config.mk and Makefile.
authored
32 dist: clean
33 mkdir cower-${VERSION}
00210f8 @falconindy create a DISTFILES var to track... distfiles
authored
34 cp ${DISTFILES} cower-${VERSION}
a4c0320 @falconindy simplify config.mk and Makefile.
authored
35 sed "s/^VERSION = .*/VERSION = ${VERSION}/" config.mk > cower-${VERSION}/config.mk
36 tar cf - cower-${VERSION} | gzip -9 > cower-${VERSION}.tar.gz
37 rm -rf cower-${VERSION}
38
39 strip: cower
91b831e @falconindy we can --strip-all, not just unneeded
authored
40 strip --strip-all cower
8fd0821 @falconindy Makefile: Use .PHONY target properly and add dist/uninstall targets
authored
41
42 uninstall:
cad4fa5 @falconindy make: Implement suckless style build system with config.mk
authored
43 @echo removing executable file from ${DESTDIR}${PREFIX}/bin
eaa7995 @falconindy rewrite from scratch
authored
44 rm -f ${DESTDIR}${PREFIX}/bin/cower
cad4fa5 @falconindy make: Implement suckless style build system with config.mk
authored
45 @echo removing man page from ${DESTDIR}${PREFIX}/man1/cower.1
eaa7995 @falconindy rewrite from scratch
authored
46 rm -f ${DESTDIR}/${PREFIX}/man1/cower.1
85d4312 @falconindy makefile: add bash completion to dist and install targets
authored
47 @echo removing bash completion
eaa7995 @falconindy rewrite from scratch
authored
48 rm -f ${DESTDIR}/etc/bash_completion.d/cower
36a2bc3 @falconindy Makefile: install sample config
authored
49 @echo removing sample config
50 rm -f ${DESTDIR}/usr/share/cower/config
8fd0821 @falconindy Makefile: Use .PHONY target properly and add dist/uninstall targets
authored
51
695568f @falconindy Makefile: add cscope target alias, and clean cscope.out
authored
52 cscope: cscope.out
53 cscope.out:
9ce2f3a @falconindy add cscope target, and ignore output
authored
54 cscope -b
55
1c500b9 @falconindy Initial commit
authored
56 clean:
eaa7995 @falconindy rewrite from scratch
authored
57 rm -f *.o cower cower.1 cscope.out
1c500b9 @falconindy Initial commit
authored
58
a4c0320 @falconindy simplify config.mk and Makefile.
authored
59 .PHONY: all clean dist doc install uninstall
9cd24c5 @falconindy makefile: update SRC array for new sources and fix a few typos
authored
60
Something went wrong with that request. Please try again.