forked from acaudwell/Gource
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.in
34 lines (31 loc) · 1.04 KB
/
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
prefix = @prefix@
exec_prefix = ${prefix}
bindir = ${exec_prefix}/bin
datarootdir = @datarootdir@
mandir = ${datarootdir}/man
gourcedatadir = $(datarootdir)/gource
gourcefontdir = @gourcefontdir@
SUBDIRS = src
all:
for dir in ${SUBDIRS} ; do ( cd $$dir ; ${MAKE} all ); done
install: all
mkdir -p -m 755 $(DESTDIR)/$(bindir)
mkdir -p -m 755 ${DESTDIR}/$(gourcedatadir)
mkdir -p -m 755 ${DESTDIR}/$(mandir)/man1
cp data/*.png ${DESTDIR}/$(gourcedatadir)/
cp gource ${DESTDIR}/$(bindir)/
sed 's|GOURCE_DATADIR|$(gourcedatadir)|g' data/gource.1 > ${DESTDIR}/$(mandir)/man1/gource.1
gzip -f9 ${DESTDIR}/$(mandir)/man1/gource.1
ifndef gourcefontdir
mkdir -p -m 755 ${DESTDIR}/$(gourcedatadir)/fonts
cp data/fonts/*.ttf ${DESTDIR}/$(gourcedatadir)/fonts/
cp data/fonts/README ${DESTDIR}/$(gourcedatadir)/fonts/
endif
distclean:
for dir in ${SUBDIRS} ; do ( cd $$dir ; ${MAKE} distclean ); done
rm Makefile
rm config.status
rm config.log
clean:
for dir in ${SUBDIRS} ; do ( cd $$dir ; ${MAKE} clean ); done
if test -f gource; then rm gource; fi;