diff level1/coco1/sys/makefile @ 2727:f4870404ccc9 lwtools-port

Adjusted makefile to populate inetd.conf with port number for telnet
author Boisy Pitre <boisy.pitre@nuance.com>
date Tue, 31 Jul 2012 13:56:20 -0500
parents 678c6848dc12
children 99fac4bd9c41
line wrap: on
line diff
--- a/level1/coco1/sys/makefile	Tue Jul 31 12:06:34 2012 -0500
+++ b/level1/coco1/sys/makefile	Tue Jul 31 13:56:20 2012 -0500
@@ -2,12 +2,13 @@
         PORT=coco1
 endif
 include $(NITROS9DIR)/rules.mak
+TELNET_PORT	= 6803
 
 vpath %.hp	$(LEVEL1)/sys
 
 DEPENDS		= ./makefile
 
-SYSFILES	= ../../sys/errmsg ../../sys/motd ../../sys/password ../../sys/inetd.conf
+SYSFILES	= ../../sys/errmsg ../../sys/motd ../../sys/password inetd.conf
 HELPFILES	= asm.hp attr.hp backup.hp binex.hp build.hp chd.hp \
 		chx.hp cmp.hp cobbler.hp config.hp copy.hp cputype.hp date.hp \
 		dcheck.hp debug.hp ded.hp deiniz.hp del.hp deldir.hp devs.hp \
@@ -26,13 +27,16 @@
 
 all:	$(ALLOBJS) $(DEPENDS)
 
+inetd.conf:     $(LEVEL1)/sys/inetd.conf
+	@sed 's/%TELNET_PORT%/$(TELNET_PORT)/' $^ > $@
+
 alldragon: $(ALLOBJS)
 
 helpmsg: $(HELPFILES)
 	$(MERGE) $^ > $@
 
 clean:
-	$(RM) $(HELPMSG)
+	$(RM) $(HELPMSG) inetd.conf
 
 showobjs:
 	@$(ECHO) $(ALLOBJS)