Find file
Fetching contributors…
Cannot retrieve contributors at this time
48 lines (43 sloc) 1.52 KB
prefix = @prefix@
exec_prefix = ${prefix}
bindir = ${exec_prefix}/bin
datarootdir = @datarootdir@
mandir = ${datarootdir}/man
sysconfdir = @sysconfdir@
sdlappinitdir = @sdlappinitdir@
sdlappconfdir = @sdlappconfdir@
sdlappdatadir = $(datarootdir)/confhud
sdlappfontdir = @sdlappfontdir@
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}/$(sdlappdatadir)
mkdir -p -m 755 ${DESTDIR}/$(sdlappconfdir)
cp data/*.png ${DESTDIR}/$(sdlappdatadir)/
cp data/*.tga ${DESTDIR}/$(sdlappdatadir)/
cp data/*.jpg ${DESTDIR}/$(sdlappdatadir)/
cp data/gource.style ${DESTDIR}/$(sdlappdatadir)/
cp -f confhud ${DESTDIR}/$(bindir)/
cp scripts/confhud-config ${DESTDIR}/$(bindir)/
cp scripts/confhud-fetch ${DESTDIR}/$(bindir)/
# mkdir -p -m 755 ${DESTDIR}/$(mandir)/man1
# sed 's|CONFHUD_DATADIR|$(sdlappdatadir)|g' data/confhud.1 > ${DESTDIR}/$(mandir)/man1/confhud.1
# gzip -f9 ${DESTDIR}/$(mandir)/man1/confhud.1
ifdef sdlappinitdir
cp scripts/confhud-daemon-init ${DESTDIR}/$(sdlappinitdir)/confhud
endif
ifndef sdlappfontdir
mkdir -p -m 755 ${DESTDIR}/$(sdlappdatadir)/fonts
cp data/fonts/*.ttf ${DESTDIR}/$(sdlappdatadir)/fonts/
cp data/fonts/README ${DESTDIR}/$(sdlappdatadir)/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 confhud; then rm confhud; fi;