diff options
author | Hans-Joachim Lankenau <hjs@openoffice.org> | 2002-02-13 15:58:18 +0000 |
---|---|---|
committer | Hans-Joachim Lankenau <hjs@openoffice.org> | 2002-02-13 15:58:18 +0000 |
commit | c9575a782a5f8c1c6bc913568860fdbba66c6bf0 (patch) | |
tree | b36e2cd902fae625de0d8c6da5aab62bc95aa0eb /solenv/inc/pstrules.mk | |
parent | 2c426d7f846b70a76609775e4d73cf9426249ebe (diff) |
#97443# rule for export lists of testshl libraries; workaround for dmake bug
Diffstat (limited to 'solenv/inc/pstrules.mk')
-rw-r--r-- | solenv/inc/pstrules.mk | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/solenv/inc/pstrules.mk b/solenv/inc/pstrules.mk index 76f2ba13e875..c019486ba0d9 100644 --- a/solenv/inc/pstrules.mk +++ b/solenv/inc/pstrules.mk @@ -2,9 +2,9 @@ # # $RCSfile: pstrules.mk,v $ # -# $Revision: 1.17 $ +# $Revision: 1.18 $ # -# last change: $Author: hjs $ $Date: 2001-11-21 17:13:21 $ +# last change: $Author: hjs $ $Date: 2002-02-13 16:58:18 $ # # The Contents of this file are made available subject to the terms of # either of the following licenses @@ -273,3 +273,23 @@ $(UNOUCROUT)$/%.hdl : $(UNOUCRDEP) +cppumaker $(CPPUMAKERFLAGS) -B$(UNOUCRBASE) -O$(UNOUCROUT) -T{$(subst,$/,. $(subst,$(UNOUCROUT)$/, $(@:db)))} $(UNOUCRRDB) +.IF "$(TESTDIR)"!="" + +# workaround for strange dmake bug: +# if the previous block was a rule or a target, "\#" isn't recognized +# as an escaped "#". if it was an assignment, escaping works... +some_unique_variable_name:=1 + +.IF "$(OS)" == "WNT" +REGEXP:="s/^[\#].*$$//" +.ELSE +REGEXP:='s/^[\#].*$$//' +.ENDIF + +$(MISC)$/%.exp : sce$/%.sce + @+-$(RM) $@ >& $(NULLDEV) + @+-$(RM) $(@:d)$(@:b).tst >& $(NULLDEV) + +$(TYPE) $< | sed $(REGEXP) | sed "s/^/test_/" > $(@:d)$(@:b).tst + +$(TYPE) $(@:d)$(@:b).tst | sed "/test_./ w $@" + +.ENDIF # "$(TESTDIR)"!="" |