diff options
author | Nate Straz <nstraz@redhat.com> | 2005-09-13 16:33:19 +0000 |
---|---|---|
committer | Nathan Straz <nstraz@redhat.com> | 2008-09-23 09:37:44 -0400 |
commit | 8bd361e185489e2ce2f0582e3c70de9bf6451a08 (patch) | |
tree | b3eb3a36f34e450f8a35bc776d67efdd49932970 /Makefile | |
parent | bf489daffc4902db3a9eb95d485fd867ac1ea524 (diff) | |
download | qarsh-8bd361e185489e2ce2f0582e3c70de9bf6451a08.tar.gz qarsh-8bd361e185489e2ce2f0582e3c70de9bf6451a08.tar.xz qarsh-8bd361e185489e2ce2f0582e3c70de9bf6451a08.zip |
Initial pass at packagingv1.0-1
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 43 |
1 files changed, 16 insertions, 27 deletions
@@ -6,7 +6,9 @@ LOADLIBES := -lxml2 COMMON := qarsh_packet.c sockutil.c -all: qarshd qarsh qacp btimed btimec +TARGETS := qarshd qarsh qacp btimed btimec + +all: $(TARGETS) qarshd: qarshd.c $(COMMON) qarsh: qarsh.c $(COMMON) @@ -14,31 +16,18 @@ qacp: qacp.c $(COMMON) btimed: btimed.c btimec: btimec.c btime.c -install: qarsh qarshd - @echo Installing qarsh daemon and client - install -d ${STSDIR}/bin/ - install qacp ${STSDIR}/bin - install qarsh ${STSDIR}/bin - install qarshd ${STSDIR}/bin - - @echo "Installing btime deamon and test client" - @install -d ${STSDIR}/bin/ - @install btimed ${STSDIR}/bin - @install btimec ${STSDIR}/bin - -uninstall: - ${UNINSTALL} qacp ${STSDIR}/bin - ${UNINSTALL} qarsh ${STSDIR}/bin - ${UNINSTALL} qarshd ${STSDIR}/bin - ${UNINSTALL} btimed ${STSDIR}/bin - ${UNINSTALL} btimec ${STSDIR}/bin +install: all + install -D qacp $(INSTROOT)/usr/bin/qacp + install -D qarsh $(INSTROOT)/usr/bin/qarsh + install -D qarshd $(INSTROOT)/usr/sbin/qarshd + install -D btimed $(INSTROOT)/usr/sbin/btimed + install -D btimec $(INSTROOT)/usr/bin/btimec clean: - /bin/rm -f *.o - -clobber: - /bin/rm -f qacp - /bin/rm -f qarsh - /bin/rm -f qarshd - /bin/rm -f btimec - /bin/rm -f btimed + $(RM) $(TARGETS) + +qarsh.tar.bz2: qarsh.spec + tar cjf $@ . + +rpm: qarsh.tar.bz2 qarsh.spec + rpmbuild -ta $< |