Permalink
Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
61 lines (47 sloc) 1.2 KB
# For more options, use the src/GNUmakefile
# DESTDIR, if defined, comes from rpmbuild and is the directory for the
# temporary build.
# These are substituted by configure
#
MAKE=GMAKETYPE
PREFIX=PREFIXSUB
MANPREFIX=MANPREFIXSUB
all:
$(MAKE) -C src
clean:
$(MAKE) clean -C src
distclean:
$(MAKE) distclean -C src
test:
$(MAKE) test -C src
coverage:
$(MAKE) coverage -C src
releasetest:
$(MAKE) releasetest -C src
max:
$(MAKE) -C src max
install:
ifdef RPM_BUILD_ROOT
install -pd ${DESTDIR}${PREFIX}/bin
install -pm0755 src/spar ${DESTDIR}${PREFIX}/bin/spar
install -pd ${DESTDIR}$(MANPREFIX)/man1
install -pm0644 src/spar.1 ${DESTDIR}${MANPREFIX}/man1/spar.1
else
install -pd ${PREFIX}/bin
install -pm0755 src/spar ${PREFIX}/bin/spar
install -pd $(MANPREFIX)/man/man1
install -pm0644 src/spar.1 ${MANPREFIX}/man/man1/spar.1
endif
uninstall:
ifdef RPM_BUILD_ROOT
rm ${DESTDIR}${PREFIX}/bin/spar
rm ${DESTDIR}${MANPREFIX}/man1/spar.1
else
rm ${PREFIX}/bin/spar
rm ${MANPREFIX}/man/man1/spar.1
endif
help:
@echo "Try make, make install or make uninstall"
@echo "If you have the sources, there are more options"
@echo "in the src directory"
.PHONY: all clean distclean test max install uninstall help