123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- (eval-when-compile (require 'cl))
- (require 'ede/pmake)
- (require 'ede/proj-comp)
- (defclass ede-proj-target-makefile-miscelaneous (ede-proj-target-makefile)
- ((sourcetype :initform '(ede-misc-source))
- (availablecompilers :initform '(ede-misc-compile))
- (submakefile :initarg :submakefile
- :initform ""
- :type string
- :custom string
- :documentation
- "Miscellaneous sources which have a specialized makefile.
- The sub-makefile is used to build this target.")
- )
- "Miscellaneous target type.
- A user-written makefile is used to build this target.
- All listed sources are included in the distribution.")
- (defvar ede-misc-source
- (ede-sourcecode "ede-misc-source"
- :name "Miscellaneous"
- :sourcepattern ".*")
- "Miscellaneous field definition.")
- (defvar ede-misc-compile
- (ede-compiler "ede-misc-compile"
- :name "Sub Makefile"
- :commands
- '(
- )
- :autoconf nil
- :sourcetype '(ede-misc-source)
- )
- "Compile code via a sub-makefile.")
- (defmethod ede-proj-makefile-sourcevar ((this ede-proj-target-makefile-miscelaneous))
- "Return the variable name for THIS's sources."
- (concat (ede-pmake-varname this) "_MISC"))
- (defmethod ede-proj-makefile-dependency-files
- ((this ede-proj-target-makefile-miscelaneous))
- "Return a list of files which THIS target depends on."
- (with-slots (submakefile) this
- (cond ((string= submakefile "")
- nil)
- ((not submakefile)
- nil)
- (t (list submakefile)))))
- (defmethod ede-proj-makefile-insert-rules ((this ede-proj-target-makefile-miscelaneous))
- "Create the make rule needed to create an archive for THIS."
-
-
-
- (insert (ede-name this) ": ")
- (with-slots (submakefile) this
- (if (string= submakefile "")
- (insert "\n\t@\n\n")
- (insert submakefile "\n" "\t$(MAKE) -f " submakefile "\n\n"))))
- (provide 'ede/proj-misc)
|