scripts

Random scripts
git clone git://git.margiolis.net/scripts.git
Log | Files | Refs | README | LICENSE

Makefile (829B)


      1 .POSIX:
      2 
      3 TARGS = audl \
      4 	ausplit \
      5 	autocomp \
      6 	backup \
      7 	batnfy \
      8 	buildtrace \
      9 	bookmark \
     10 	doccomp \
     11 	docprev \
     12 	extr \
     13 	fontupd \
     14 	gitmail \
     15 	irssi_torconf \
     16 	mntdroid \
     17 	tmsync \
     18 	passget \
     19 	push \
     20 	rssread \
     21 	screencast \
     22 	se \
     23 	setscreens \
     24 	sjail \
     25 	sysact \
     26 	tag \
     27 	unix \
     28 	upd \
     29 	vdq \
     30 	vds \
     31 	vmb \
     32 	walset \
     33 	wttr
     34 
     35 PREFIX = /usr/local
     36 
     37 all: ${TARGS}
     38 	chmod +x ${TARGS}
     39 
     40 dist:
     41 	mkdir -p ${DIST}
     42 	cp -R ${TARGS} ${DIST}
     43 	tar -cf ${DIST}.tar ${DIST}
     44 	gzip ${DIST}.tar
     45 	rm -rf ${DIST}
     46 
     47 install: all
     48 	mkdir -p ${DESTDIR}${PREFIX}/bin
     49 	cp -f ${TARGS} ${DESTDIR}${PREFIX}/bin
     50 	for targ in ${TARGS} ; do \
     51 		chmod 755 ${DESTDIR}${PREFIX}/bin/$${targ} ; \
     52 	done
     53 
     54 uninstall:
     55 	for targ in ${TARGS} ; do \
     56 		rm -f ${DESTDIR}${PREFIX}/bin/$${targ} ; \
     57 	done
     58 
     59 clean:
     60 	rm -f ${DIST}.tar.gz
     61 
     62 .PHONY: all clean dist install uninstall