Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 15602 | Differences between
and this patch

Collapse All | Expand All

(-)c-client-2002b/Makefile (-31 / +2 lines)
Lines 256-262 Link Here
256
256
257
# Make the IMAP Toolkit
257
# Make the IMAP Toolkit
258
258
259
all:	SPECIALS c-client rebuild bundled
259
all:	SPECIALS c-client rebuild 
260
260
261
c-client:
261
c-client:
262
	@echo Not processed yet.  In a first-time build, you must specify
262
	@echo Not processed yet.  In a first-time build, you must specify
Lines 425-440 Link Here
425
	$(TOOLS)/$@ "$(LN)" src/ansilib c-client
425
	$(TOOLS)/$@ "$(LN)" src/ansilib c-client
426
	$(TOOLS)/$@ "$(LN)" src/charset c-client
426
	$(TOOLS)/$@ "$(LN)" src/charset c-client
427
	$(TOOLS)/$@ "$(LN)" src/osdep/$(SYSTEM) c-client
427
	$(TOOLS)/$@ "$(LN)" src/osdep/$(SYSTEM) c-client
428
	$(TOOLS)/$@ "$(LN)" src/mtest mtest
429
	$(TOOLS)/$@ "$(LN)" src/ipopd ipopd
430
	$(TOOLS)/$@ "$(LN)" src/imapd imapd
431
	$(TOOLS)/$@ "$(LN)" src/mailutil mailutil
432
	$(TOOLS)/$@ "$(LN)" src/mlock mlock
433
	$(TOOLS)/$@ "$(LN)" src/dmail dmail
434
	$(TOOLS)/$@ "$(LN)" src/tmail tmail
435
	$(LN) $(TOOLS)/$@ .
428
	$(LN) $(TOOLS)/$@ .
436
429
437
build:	OSTYPE rebuild rebuildclean bundled
430
build:	OSTYPE rebuild rebuildclean
438
431
439
OSTYPE:
432
OSTYPE:
440
	@echo Building c-client for $(BUILDTYPE)...
433
	@echo Building c-client for $(BUILDTYPE)...
Lines 449-456 Link Here
449
	echo $(BUILDTYPE) > OSTYPE
442
	echo $(BUILDTYPE) > OSTYPE
450
	$(TOUCH) rebuild
443
	$(TOUCH) rebuild
451
444
452
rebuild:
453
	@$(SH) -c '(test $(BUILDTYPE) = rebuild -o $(BUILDTYPE) = `$(CAT) OSTYPE`) || (echo Already built for `$(CAT) OSTYPE` -- you must do \"make clean\" first && exit 1)'
454
	@echo Rebuilding c-client for `$(CAT) OSTYPE`...
445
	@echo Rebuilding c-client for `$(CAT) OSTYPE`...
455
	@$(TOUCH) SPECIALS
446
	@$(TOUCH) SPECIALS
456
	$(CD) c-client;$(MAKE) all CC=`$(CAT) CCTYPE` \
447
	$(CD) c-client;$(MAKE) all CC=`$(CAT) CCTYPE` \
Lines 459-484 Link Here
459
rebuildclean:
450
rebuildclean:
460
	$(SH) -c '$(RM) rebuild || true'
451
	$(SH) -c '$(RM) rebuild || true'
461
452
462
bundled:
463
	@echo Building bundled tools...
464
	$(CD) mtest;$(MAKE)
465
	$(CD) ipopd;$(MAKE)
466
	$(CD) imapd;$(MAKE)
467
	$(CD) mailutil;$(MAKE)
468
	@$(SH) -c '(test -f /usr/include/sysexits.h ) || make sysexitwarn'
469
	$(CD) mlock;$(MAKE) || true
470
	$(CD) dmail;$(MAKE) || true
471
	$(CD) tmail;$(MAKE) || true
472
473
474
sysexitwarn:
475
	@echo Hmm...it does not look like /usr/include/sysexits.h exists.
476
	@echo Either your system is too ancient to have the sysexits.h
477
	@echo include, or your C compiler gets it from some other location
478
	@echo than /usr/include.  If your system is too old to have the
479
	@echo sysexits.h include, you will not be able to build the
480
	@echo following programs.
481
482
clean:
453
clean:
483
	@echo Removing old processed sources and binaries...
454
	@echo Removing old processed sources and binaries...
484
	$(SH) -c '$(RM) an ua OSTYPE SPECIALS c-client mtest imapd ipopd mailutil mlock dmail tmail || true'
455
	$(SH) -c '$(RM) an ua OSTYPE SPECIALS c-client mtest imapd ipopd mailutil mlock dmail tmail || true'

Return to bug 15602