-
Notifications
You must be signed in to change notification settings - Fork 5
/
GNUmakefile
61 lines (44 loc) · 1.67 KB
/
GNUmakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
include $(GNUSTEP_MAKEFILES)/common.make
SUBPROJECTS = ToolSource
ifneq (,$(filter clean distclean,$(MAKECMDGOALS)))
test ?= yes
endif
ifeq ($(test), yes)
SUBPROJECTS += \
TestSource/TestFramework \
TestSource/TestBundle \
TestSource/TestUnitKit
endif
FRAMEWORK_NAME = UnitKit
# ABI version (the API version is in CFBundleShortVersionString of FrameworkSource/Info.plist)
UnitKit_VERSION = 1.5
UnitKit_LIBRARIES_DEPEND_UPON = $(FND_LIBS) $(OBJC_LIBS) $(SYSTEM_LIBS)
OTHER_HEADER_DIRS = FrameworkSource
UnitKit_HEADER_FILES_DIR = UnitKit
UnitKit_HEADER_FILES = $(notdir $(wildcard UnitKit/*.h))
UnitKit_OBJC_FILES = $(wildcard FrameworkSource/*.m)
UnitKit_LOCALIZED_RESOURCE_FILES = UKTestHandler.strings
UnitKit_LANGUAGES = English
# Documentation
UnitKitDoc_DOC_FILES = \
FrameworkSource/UKTest.h \
FrameworkSource/UKTestHandler.h \
FrameworkSource/UKRunner.h
UnitKitDoc_MENU_TEMPLATE_FILE = Documentation/Templates/menu.html
include compilerflags.preamble
include $(GNUSTEP_MAKEFILES)/framework.make
-include ../../etoile.make
-include etoile.make
-include ../../documentation.make
include $(GNUSTEP_MAKEFILES)/aggregate.make
# framework.make looks for xxxInfo.plist in the project directory only (xxx_RESOURCE_FILES is ignored).
# framework.make looks for xxx_LOCALIZED_RESOURCE_FILES only in each language subdirectory (see Shared/bundle.make).
before-all::
$(ECHO_NOTHING) \
if [ ! -e $(PROJECT_DIR)/UnitKitInfo.plist ]; then \
ln -s $(PROJECT_DIR)/FrameworkSource/Info.plist $(PROJECT_DIR)/UnitKitInfo.plist; \
ln -s $(PROJECT_DIR)/FrameworkSource/*.lproj $(PROJECT_DIR); \
fi; \
$(END_ECHO)
after-clean::
rm -f $(PROJECT_DIR)/UnitKitInfo.plist $(PROJECT_DIR)/*.lproj