GNUmakefile.in 1.29 KB
Newer Older
1 2
#
# EMULAB-COPYRIGHT
3
# Copyright (c) 2000-2005 University of Utah and the Flux Group.
4 5 6 7 8 9 10 11 12 13 14
# All rights reserved.
#

SRCDIR		= @srcdir@
TESTBED_SRCDIR	= @top_srcdir@
OBJDIR		= ..
SUBDIR		= account
UNIFIED         = @UNIFIED_BOSS_AND_OPS@

include $(OBJDIR)/Makeconf

15
SBIN_STUFF	= tbacct addsfskey addpubkey mkusercert
16
LIBEXEC_STUFF	= webtbacct webaddsfskey webaddpubkey webmkusercert
17
FSBIN_STUFF	= quotamail
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41

#
# Force dependencies on the scripts so that they will be rerun through
# configure if the .in file is changed.
# 
all:	$(SBIN_STUFF) $(LIBEXEC_STUFF)

include $(TESTBED_SRCDIR)/GNUmakerules

install: all script-install
	@echo "Don't forget to do a post-install as root"

script-install:	$(addprefix $(INSTALL_SBINDIR)/, $(SBIN_STUFF)) \
	 $(addprefix $(INSTALL_LIBEXECDIR)/, $(LIBEXEC_STUFF))

post-install: 
	chmod 775 $(INSTALL_BINDIR)
	chmod 775 $(INSTALL_SBINDIR)
	chmod 775 $(INSTALL_LIBDIR)
	chmod 775 $(INSTALL_LIBEXECDIR)
	chown root $(INSTALL_SBINDIR)/tbacct
	chmod u+s $(INSTALL_SBINDIR)/tbacct
	chown root $(INSTALL_SBINDIR)/addpubkey
	chmod u+s $(INSTALL_SBINDIR)/addpubkey
42 43
	chown root $(INSTALL_SBINDIR)/mkusercert
	chmod u+s $(INSTALL_SBINDIR)/mkusercert
44

45
control-install:
46

47
fs-script-install: $(addprefix $(INSTALL_SBINDIR)/, $(FSBIN_STUFF))
48 49

fs-install: fs-script-install
50 51 52 53

clean:
	rm -f *.o core