File: Makefile.shared

package info (click to toggle)
orbit2 1%3A2.14.19-2
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 6,232 kB
  • ctags: 15,495
  • sloc: ansic: 56,442; sh: 10,343; makefile: 841
file content (23 lines) | stat: -rw-r--r-- 734 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
IDL_COMPILER = @IDL_COMPILER@

%-stubs.c %-skels.c %-common.c %-imodule.c %-skelimpl.c: %.h
	true

%.h: $(IDL_DIR)%.idl $(IDL_COMPILER)
	-(rm -f $(*).h $(*)-stubs.c $(*)-skels.c $(*)-common.c $(*)-imodule.c $(*)-skelimpl.c || true) > /dev/null
	$(IDL_COMPILER) $(IDL_FLAGS) --deps $(*D)/.deps/$(*F).idl.P $<
	for I in $(*).h $(*)-stubs.c $(*)-skels.c $(*)-common.c $(*)-imodule.c $(*)-skelimpl.c; do \
		if test -f $$I; then \
			sed -e 's,OObject,Object,g' -e 's,TTypeCode,TypeCode,g' $$I > $$I.out; \
			mv $$I.out $$I ; \
		fi; \
	done

if MAINTAINER_MODE
IDL_DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
IDL_DEP_FILES = $(IDL_FILES:%.idl=.deps/%.idl.P)
-include $(IDL_DEP_FILES)
endif

distclean-local:
	-rm -rf .deps